package com.shizhanzhe.gxb.url;

/**
 * Created by zz9527 on 2018/10/22.
 */
public class Path {
    public static String BASE_URL = "http://zxbbuy.itqzw.com";
    //会员登录接口
    public static String LOGIN(String phone, String psorcode,int type){
        //1密码  2验证码
        if (type==1){
            return BASE_URL + "/index.php/index/api/login?phone=" +phone+ "&password=" +psorcode+ "&type=1";
        } else {
            return BASE_URL + "/index.php/index/api/login?phone=" +phone+ "&code=" +psorcode+ "&type=2";
        }
    }
    //发送短信验证码接口
    public static String SENDPHONECODE(String phone, int type,String sign) {
        return BASE_URL + "/index.php/index/api/sendPhoneCode?phone=" + phone + "&type=" + type + "&sign=" + sign;
    }
    //注册接口
    public static String PHONEREGISTER(String phone, String password, String code, String pid) {
        return BASE_URL + "/index.php/index/api/phoneRegister?phone=" + phone + "&password=" + password + "&code=" + code + "&pid=" + pid;
    }

    //我的返佣
    public static String myOrder(int uid,int page){
        String path = BASE_URL + "/index.php/index/api/myOrder?uid="+uid+"&page="+page;
        return path;
    }
    //团队返佣
    public static String teamOrders(int uid,int type,int page){
        String path = BASE_URL + "/index.php/index/api/teamOrders?uid="+uid+"&type="+type+"&page="+page;
        return path;
    }
    //商品推荐接口
    public static String tuiGoods(int uid,int page){
        String path = BASE_URL + "/index.php/index/api/tuiGoods?uid="+uid+"&page="+page;

        return path;
    }
    //营销素材
    public static String material(int page){
        String path = BASE_URL + "/index.php/index/api/material?page="+page;

        return path;
    }
    //新手必发
    public static String novice(int page){
        String path = BASE_URL + "/index.php/index/api/novice?page="+page;

        return path;
    }
    //商品列表
    public static String PDD(String optid,int type,int page){
        String path = BASE_URL + "/index.php/index/api/pddgoods_order?opt_id="+optid+"&type="+type+"&page="+page;

        return path;
    }
    //商品详情
    public static String PDDDETAIL(String goods_id){
        String path = BASE_URL + "/index.php/index/api/pddgoods_detail?goods_id="+goods_id;
        return path;
    }
    //推广单人
    public static String PDDURL(int uid,String goods_id){
        String path = BASE_URL + "/index.php/index/api/creatpdd_spreadurl?uid="+uid+"&goods_id="+goods_id;
        return path;
    }
    //推广团队
    public static String PDDURL2(int uid,String goods_id){
        String path = BASE_URL + "/index.php/index/api/creatpdd_spreadurls?uid="+uid+"&goods_id="+goods_id;
        return path;
    }
    //主题
    public static String THEME(){
        String path = BASE_URL + "/index.php/index/api/pddbrand_list";
        return path;
    }
    //主题列表
    public static String THEMELIST(int theme_id){
        String path = BASE_URL + "/index.php/index/api/pddbrand_goods?theme_id="+theme_id;
        return path;
    }
    //搜索
    public static String PDDSEARCH(String name,int type){
        String path = BASE_URL + "/index.php/index/api/searchGoods?name="+name+"&type="+type;
        return path;
    }
    //修改头像
    public static final String avatarUpload = BASE_URL + "/index.php/index/api/avatarUpload";
    //修改个人信息
    public static final String personal_xiu = BASE_URL + "/index.php/index/api/personal_xiu";
    //修改密码
    public static String password_xiu(String phone, String code, String password){
        return BASE_URL + "/index.php/index/api/password_xiu?phone="+phone+"&code="+code+"&password=" + password;
    }
    //提现
    public static String sqDrawcash(int uid,String money, String address){
        return BASE_URL + "/index.php/index/api/sqDrawcash?uid="+ uid + "&money="+money+"&address="+address;
    }
    public static final String sysset = BASE_URL + "/index.php/index/api/sysset";
    //个人中心
    public static String myinfo(int uid){
        return BASE_URL + "/index.php/index/api/myInfo?uid=" + uid;
    }
    //收入报表
    public static String incomeStatement(int uid,int type){
        return BASE_URL + "/index.php/index/api/incomeStatements?uid=" + uid + "&type=" + type;
    }
    //我的团队
    public static String myTeam(int uid){
        return BASE_URL + "/index.php/index/api/myTeam?uid=" + uid;
    }
    //邀请好友链接
    public static String invitereg(int uid){
        return BASE_URL + "/index.php/index/index/clickShares?uid=" + uid +"&type=1";
    }
    //获取余额
    public static String balanceWithdrawal(int uid){
        return BASE_URL + "/index.php/index/api/balanceWithdrawal?uid=" + uid;
    }
    //转入用户余额
    public static String accounts(int uid,double money){
        return BASE_URL + "/index.php/index/api/accounts?uid=" + uid + "&money=" + money;
    }
    //提现记录
    public static String txRecode(int uid, int page){
        return BASE_URL + "/index.php/index/api/txRecode?uid=" + uid + "&page=" + page;
    }
    //升级
    public static String upgrade(int uid){
        return BASE_URL + "/index.php/index/api/upgrade?uid=" + uid;
    }
    //vip参数
    public static String operation(int uid){
        return BASE_URL + "/index.php/index/api/operation?uid=" + uid;
    }
    //交流合作
    public static String coop(){
        return BASE_URL + "/index.php/index/api/about";
    }
    public static String recommend(int type){
        return BASE_URL + "/index.php/index/api/recommend?type=" + type;
    }
    //首页高佣店铺
    public static String merchantlist(){
        return BASE_URL + "/index.php/index/api/merchantlist";
    }
    //更多高佣店铺
    public static String merchantlists(int page,int size){
        return BASE_URL + "/index.php/index/api/merchantlist?page=" + page +"&size="+ size;
    }
    public static String wxlogin(String unionid,String openid,String nickname,String avatar,String content){
//        avatar = "".equals(avatar) ? "0" : avatar;
        return BASE_URL + "/index.php/index/index/wxLogin?unionid="+unionid+"&openid="+openid+"&nickname="+nickname+"&avatar=" + avatar + "&pid=" + content;
    }
    public static String topgoods(int limit,int type){
        return BASE_URL + "/index.php/index/api/topgoods?limit="+ limit +"&type=" + type;
    }
    //热销排行
    public static String mallgoods(int mall_id,int page){
        return BASE_URL + "/index.php/index/api/mallgoods?mall_id=" + mall_id + "&page=" + page;
    }
    //高佣排行
    public static String pddgoods_high(int page){
        return BASE_URL + "/index.php/index/api/pddgoods_gaoyong?page=" + page;
    }
    public static String bindingphone(int uid,String phone,String code){
        return BASE_URL + "/index.php/index/index/bindingPhone?uid="+uid+"&phone=" + phone +"&code=" + code;
    }
    //获取广告
    public static  String getAd(){
        return BASE_URL + "/index.php/index/api/activity";
    }
    //推荐商品
    public static String pdd_recommend(int page){
        return BASE_URL + "/index.php/index/api/pddgoods_tuijian?page=" + page;
    }
    public static String PDDDELETE(String id){
        return BASE_URL + "/index.php/index/api/pdd_goodsdelete?goods_id=" + id;
    }
    //学习中心
    public static String vipstudy(int page){
        return BASE_URL + "/index.php/index/index/profitStudy?page=" + page;
    }
    //规则中心
    public static String vipregular(int page){
        return BASE_URL + "/index.php/index/index/profitRule?page=" + page;
    }
}
